﻿using System.Collections;

namespace System.Linq {
// ReSharper disable InconsistentNaming
	public static class IQueryableExtensions {
// ReSharper restore InconsistentNaming

		#region Pagination

		public static PagedList<T> ToPagedList<T>(this IQueryable<T> source, int index) {
			return new PagedList<T>(source, index, 10);
		}

		public static PagedList<T> ToPagedList<T>(this IQueryable<T> source, int index, int pageSize) {
			return new PagedList<T>(source, index, pageSize);
		}

		#endregion
	}
}